package task

import (
	"context"
	"im/lib/dao"
	"im/models"
)

func SendUserMessage(ctx context.Context, task *models.FailTask) (err error) {
	//断言成我们需要的结构体
	msg := task.Data.(models.ImUserMessage)
	return dao.CreateUserMessage(&msg)
}
